<?
include "include/config.php";

$tip=array ('1'=>'Garsoniera','2'=>'Apartament 2 camere','3'=>'Apartament 3 camere','4'=>'Apartament 4 camere','5'=>'Teren','6'=>'Spatiu Comercial','7'=>'Casa/Vila');
$oferta=array ('1'=>'Vanzare','2'=>'Inchiriere');
$smarty->assign('tip',$tip);
$smarty->assign('oferta',$oferta);

$user_mod_query=mysql_query("select id,name from users where level=10 ");
$agents["0"]="Alegeti agent";	
while ($users=mysql_fetch_array($user_mod_query)) {
    $agents[$users["id"]] =$users["name"];
}
$smarty->assign('agent',$agents);


$smarty->assign("content", $smarty->fetch(tmpd.'companie'.tmpl_ext));
include "include/make_page.php";
?>


